<?php

use yii\db\Migration;

class m171016_091631_alter_student extends Migration
{
    public function safeUp()
    {
        $this->alterColumn('{{%student}}', 'name', 'varchar(255) default NULL comment \'姓名\'');
        $this->alterColumn('{{%student}}', 'nickname', 'varchar(255) default NULL comment \'昵称\'');
    }

    public function safeDown()
    {
        $this->alterColumn('{{%student}}', 'name', 'varchar(20) default NULL comment \'姓名\'');
        $this->alterColumn('{{%student}}', 'nickname', 'varchar(20) default NULL comment \'昵称\'');
    }
}
